package com.comando.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * RoleT entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "role_t", catalog = "qunar")
public class RoleT implements java.io.Serializable {

	// Fields

	private Integer roleId;
	private String name;
	private String desc;

	// Constructors

	/** default constructor */
	public RoleT() {
	}

	/** minimal constructor */
	public RoleT(String name) {
		this.name = name;
	}

	/** full constructor */
	public RoleT(String name, String desc) {
		this.name = name;
		this.desc = desc;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ROLE_ID", unique = true, nullable = false)
	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Column(name = "NAME", nullable = false, length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DESC", length = 250)
	public String getDesc() {
		return this.desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}